
/***********************************************************
 
 File name: UIViewController+Base.h
 Author:    xuwei
 Description:
 对UIViewController的封装：目前主要写了对导航栏的封装
 
 2018/02/27: Created
 
 ************************************************************/

#import <UIKit/UIKit.h>

@interface UIViewController (Base)


/**
 有返回按钮的导航栏
 
 @param title 导航栏的title
 */
- (void)setNavigationWithTitle:(NSString *)title;
/**
 自定义返回按钮的导航栏
 
 @param title 导航栏的title
 @param action 返回方法
 */
- (void)setNavigationWithTitle:(NSString *)title
                       seletor:(SEL)action;

/**
 设置导航栏的背景色、title、titleColor等
 
 @param hexColor 背景色
 @param title title
 @param color titleColor
 @param imageName imageName
 @param action seletor
 */
- (void)setNavigationBarWithBGColor:(NSString *)hexColor
                              title:(NSString *)title
                         titleColor:(UIColor *)color
                          imageName:(NSString *)imageName
                            seletor:(SEL)action;
/**
 带返回按钮的导航栏
 
 @param title title
 @param action 返回事件
 */
- (void)setNavigationWithTitle:(NSString *)title
               withBackseletor:(SEL)action;
@end
